package top.huhuiyu.springboot.study.service;

import top.huhuiyu.springboot.study.base.BaseDataResult;
import top.huhuiyu.springboot.study.base.BaseResult;
import top.huhuiyu.springboot.study.base.PageBean;
import top.huhuiyu.springboot.study.base.PageResult;
import top.huhuiyu.springboot.study.entity.Software;

import java.util.List;

/**
 * @author 胡辉煜
 */
public interface SoftwareService {
  BaseResult insert(Software software);

  BaseDataResult<Software> queryByKey(Integer sid);

  BaseDataResult<PageResult<List<Software>>> query(Software software, PageBean pageBean);

  BaseDataResult<PageResult<List<Software>>> queryMapping(Software software, PageBean pageBean);

  BaseDataResult<PageResult<List<Software>>> queryResult(Software software, PageBean pageBean);

  BaseResult delete(Integer sid);

  BaseResult update(Software software);
}
